<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="keys" content="">
    <meta name="author" content="">
    <%@ include file="/WEB-INF/jsp/common/css.jsp" %>
    <link rel="stylesheet" href="${PATH}/static/css/login.css">
    <style>

    </style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <div><a class="navbar-brand" href="index.html" style="font-size:32px;">尚筹网-创意产品众筹平台</a></div>
        </div>
    </div>
</nav>

<div class="container">

<%--    <form class="form-signin" role="form">--%>
    <form id="memberForm" class="form-signin" role="form" action="domember" method="post">
        <h2 class="form-signin-heading"><i class="glyphicon glyphicon-log-in"></i> 用户注册</h2>
        <div class="form-group has-success has-feedback">
            <input type="text" class="form-control" id="loginacct" name="loginacct" value="superadmin" placeholder="请输入登录账号" autofocus>
            <span class="glyphicon glyphicon-user form-control-feedback"></span>
        </div>
        <div class="form-group has-success has-feedback">
            <input type="text" class="form-control" id="userpswd" name="userpswd" value="123456" placeholder="请输入登录密码" style="margin-top:10px;">
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
        <div class="form-group has-success has-feedback">
            <input type="text" class="form-control" id="email" name="email" value="123456@qq.com" placeholder="请输入邮箱地址" style="margin-top:10px;">
            <span class="glyphicon glyphicon glyphicon-envelope form-control-feedback"></span>
        </div>
        <div class="form-group has-success has-feedback">
            <select type="text" class="form-control" id="usertype" name="usertype" value="123456@qq.com" placeholder="企业/个人" style="margin-top:10px;">

                <option>企业</option>
                <option>个人</option>
            </select>
            <span class="glyphicon glyphicon glyphicon-envelope form-control-feedback"></span>
        </div>

        <div class="checkbox">
            <label>
                忘记密码
            </label>
            <label style="float:right">
                <a href="login.html">我有账号</a>
            </label>
        </div>
        <a class="btn btn-lg btn-success btn-block" onclick="member()" > 注册</a>
    </form>
</div>
<jsp:include page="/WEB-INF/jsp/common/js.jsp"></jsp:include>
<script>
    function member() {
        var loginacct = $("#loginacct").val();

        if($.trim(loginacct)==""){

            layer.msg("登陆账号不能为空,请输入!",{time:2000,icon:5});

            return false ;
        }
        if($.trim(userpswd)==""){

            layer.msg("登陆密码不能为空,请输入!",{time:2000,icon:5});

            return false ;
        }

        $("#memberForm").submit();
    }
</script>
</body>
</html>
